using Microsoft.AspNetCore.Mvc;

namespace GetResult.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class WeatherForecastController : ControllerBase
    {
        private static readonly string[] Summaries = new[]
        {
        "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
    };

        private readonly ILogger<WeatherForecastController> _logger;

        public WeatherForecastController(ILogger<WeatherForecastController> logger)
        {
            _logger = logger;
        }

        [HttpGet(Name = "GetWeatherForecast")]
        public List<Output> Get()
        {
            List<Output> outputlist = new List<Output>();
            for(var i = 0; i < 10; i++)
            {
                Output output = new Output();
                output.Order = i;
                output.Money = i;
                output.OredNo = i;
                outputlist.Add(output);
            };
            return outputlist;
        }


        public class Output
        {
            public int Order { get; set; }
            public int Money { get; set; }
            public int OredNo { get; set; }

        }
    }
}